package com.dongdongshop.controller;

import com.dongdongshop.service.ItemPageServiceI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("itemPage")
public class ItemPageController {

    @Autowired
    private ItemPageServiceI itemPageServiceI;

    @RequestMapping("showItemPage")
    @ResponseBody
    public String  showItemPage(Long goodsId){//goodsId,生成页面以序号+.html为标记
        itemPageServiceI.showItemPage(goodsId);
        return "ok";
    }
}
